<?php
namespace app\controller;

use app\BaseController;

class Index extends BaseController
{
    public function index()
    {
        $rs = [
            "success"=>true,
            "message"=>"成功",
            "name"=> "dddferf"
        ];
        return json($rs);
    }

    public function hello($name = 'ThinkPHP6')
    {
        return 'hello,' . $name;
    }
}

?>